package com.greet.mapper;

import com.greet.entity.AddressBook;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AddressBookMapper {
    List<AddressBook> select(AddressBook build);

    void update(AddressBook addressBook);

    void insert(AddressBook addressBook);

    @Delete("delete from address_book where id=#{id}")
    void deleteById(Long id);
}
